import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from 'typeorm';
import { consumption } from '@/modules/consumption/entities/consumption.entity';

@Entity()
export class consumptionType {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  name: string;

  @OneToMany(() => consumption, (consumption) => consumption.type)
  consumptiontype: [];
}
